/**
 * 
 */
package ns.om.services

import java.util.List;
import java.util.Map;

import grails.gorm.DetachedCriteria;

import ns.gflex.domain.Label;
import ns.gflex.domain.Log;
import ns.gflex.domain.User;
import ns.gflex.services.GFlexAttachService;
import ns.om.domain.base.*;

/**
 * @author neo
 *
 */
class ActivityService extends GFlexAttachService {

	def save(Map map,Object domain){

		map.lastUser = sessionUser
		map.creator =map.id ? User.get(map.creator.id) : map.lastUser
		if(map.manager?.id)
			map.manager = User.get(map.manager.id)

		super.save(map, false, forDomain(domain))
	}

	/* (non-Javadoc)
	 * @see ns.gflex.services.GFlexService#getDomainClass()
	 */
	@Override
	protected Class getDomainClass() {
		return null;
	}
}
